import { useContext } from "react";
import { MyContext } from "./pass";

function Bottom() {
  const message = useContext(MyContext);

  return (
    <>
      <h1>我是底层组件</h1>
      <hr />
      <h1>接收到的数据是：{message}</h1>
    </>
  );
}

export default Bottom;
